package com.arron.builder.improve;

//指挥者，制作流程
public class HouseDirector {
    private HouseBuilder builder ;

    public HouseDirector(HouseBuilder builder) {
        this.builder = builder;
    }

    public void setBuilder(HouseBuilder builder) {
        this.builder = builder;
    }

    public House constructBuilder(){
        builder.builderBasic();
        builder.builderWalls();
        builder.builderRoofed();
        return builder.build();
    }

}
